home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Development / 3DMF parser / 1.0 version / MF3DPC / MFIOCALL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-07  |  1.9 KB  |  55 lines  |  [TEXT/dosa]

  1. #ifndef MF3DIOCALLBACK_H
  2. #define    MF3DIOCALLBACK_H
  3. /*==============================================================================
  4.  *
  5.  *    File:        MFIOCALL.H
  6.  *
  7.  *    Function:    File I/O Callback Routines
  8.  *
  9.  *    Version:    Metafile:    Version 1.0 3DMF files
  10.  *                Package:    Release #2 of this code
  11.  *
  12.  *    Author(s):    Rick Wong (RWW), Duet Development Corp.
  13.  *                John Kelly (JRK), Duet Development Corp.
  14.  *
  15.  *    Copyright:    (c) 1995 by Apple Computer, Inc., all rights reserved.
  16.  *
  17.  *    Change History (most recent first):
  18.  *        FB7_JRK    Pragma macros
  19.  *        Fabio    Changed file name to 8 characters
  20.  *        F29_RWW    File created.
  21.  *==============================================================================
  22.  */
  23. #if defined(applec) || defined(__MWERKS__) || defined(THINK_C)
  24. #pragma once
  25. #endif
  26.  
  27. #include "MFTYPES.H"
  28.  
  29. /*==============================================================================
  30.  *    If you are unable to use MF3DOpenInputStdCFile and MF3DOpenOutputStdCFile,
  31.  *    MF3DOpenInput and MF3DOpenOutput require an MF3DProcsPtr which define
  32.  *    six basic I/O routines. You must define the six routines and include
  33.  *    them in an MF3DProcsRec in your call to MF3DOpen.
  34.  *==============================================================================
  35.  */
  36.  
  37. typedef    MF3DErr        (*MF3DOpenProcPtr)(MF3DDataFormatEnum, MF3DUserOpenDataPtr,
  38.                             MF3DUserFilePtr *);
  39. typedef    MF3DErr        (*MF3DReadProcPtr)(MF3DUserFilePtr, MF3DSize, char *);
  40. typedef    MF3DErr        (*MF3DWriteProcPtr)(MF3DUserFilePtr, MF3DSize, const char *);
  41. typedef    MF3DErr        (*MF3DTellProcPtr)(MF3DUserFilePtr, MF3DBinaryFilePosition *);
  42. typedef    MF3DErr        (*MF3DSeekProcPtr)(MF3DUserFilePtr, MF3DBinaryFilePosition);
  43. typedef    MF3DErr        (*MF3DCloseProcPtr)(MF3DUserFilePtr);
  44.  
  45. typedef struct MF3DProcsRec
  46. {    MF3DOpenProcPtr        openProc;
  47.     MF3DReadProcPtr        readProc;
  48.     MF3DWriteProcPtr    writeProc;
  49.     MF3DTellProcPtr        tellProc;
  50.     MF3DSeekProcPtr        seekProc;
  51.     MF3DCloseProcPtr    closeProc;
  52. } MF3DProcsRec, *MF3DProcsPtr;
  53.  
  54. #endif
  55.